import { createBrowserRouter,Navigate } from "react-router-dom"
import App from "../App"
import StatusInfo from "../yym/StatusInfo"
import ProblemFeedback from "../yym/ProblemFeedback"
import Comment from "../yym/Comment"

const router = createBrowserRouter([
    {
        path: "/",
        element: <App></App>,
        children:[
            {
                path:'/statusinfo',
                element:<StatusInfo/>
            },
            {
                path:'/problemfeedback',
                element:<ProblemFeedback/>
            },
            {
                path:'/comment',
                element:<Comment/>
            },
            {
                path:'/',
                element:<Navigate to={"/statusinfo"} ></Navigate>
            }
        ]
    },
])


export default router